package com.lvhaosb.newpneumonia.mapper;

import com.lvhaosb.newpneumonia.POJO.po.DomesticCity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 国内城市 Mapper 接口
 *
 * @author lvhao
 * @since 2020-06-21
 */
@Repository
public interface DomesticCityMapper {
    /**
     * 查询所有
     * @return
     */
    List<DomesticCity> selectAll();

    /**
     * 根据城市名称查询
     * @param name
     * @return
     */
    List<DomesticCity> selectByName(String name);

    /**
     * 新添
     * @param domesticCity
     * @return
     */
    int insert(@Param("domesticCity") DomesticCity domesticCity);

}
